<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::TrianglePainter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_triangle_painter.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpepr3d_1_1_triangle_painter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::TrianglePainter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for coloring individual triangles by clicking or dragging the mouse.  
 <a href="classpepr3d_1_1_triangle_painter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_triangle_painter_8h_source.html">TrianglePainter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for pepr3d::TrianglePainter:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpepr3d_1_1_triangle_painter.png" usemap="#pepr3d::TrianglePainter_map" alt=""/>
  <map id="pepr3d::TrianglePainter_map" name="pepr3d::TrianglePainter_map">
<area href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t..." alt="pepr3d::Tool" shape="rect" coords="0,0,144,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a960c0d36b0d8bd8eb9b1f18876894b7b"><td class="memItemLeft" align="right" valign="top"><a id="a960c0d36b0d8bd8eb9b1f18876894b7b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TrianglePainter</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;app)</td></tr>
<tr class="separator:a960c0d36b0d8bd8eb9b1f18876894b7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4064f4e3d370d72b13c16f8ed08207f2"><td class="memItemLeft" align="right" valign="top"><a id="a4064f4e3d370d72b13c16f8ed08207f2"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a4064f4e3d370d72b13c16f8ed08207f2">getName</a> () const override</td></tr>
<tr class="memdesc:a4064f4e3d370d72b13c16f8ed08207f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a short name, displayed e.g., in a side pane and tooltip. <br /></td></tr>
<tr class="separator:a4064f4e3d370d72b13c16f8ed08207f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeed99d15de0444336f86520bd1b6a360"><td class="memItemLeft" align="right" valign="top"><a id="aeed99d15de0444336f86520bd1b6a360"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#aeed99d15de0444336f86520bd1b6a360">getDescription</a> () const override</td></tr>
<tr class="memdesc:aeed99d15de0444336f86520bd1b6a360"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a description, displayed e.g., in a tooltip. <br /></td></tr>
<tr class="separator:aeed99d15de0444336f86520bd1b6a360"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5d98e4a492606bd59c36cc2b319d0fb"><td class="memItemLeft" align="right" valign="top"><a id="ad5d98e4a492606bd59c36cc2b319d0fb"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_hotkey.html">Hotkey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#ad5d98e4a492606bd59c36cc2b319d0fb">getHotkey</a> (const <a class="el" href="classpepr3d_1_1_hotkeys.html">Hotkeys</a> &amp;hotkeys) const override</td></tr>
<tr class="memdesc:ad5d98e4a492606bd59c36cc2b319d0fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an associated <a class="el" href="structpepr3d_1_1_hotkey.html" title="A hotkey, i.e., a keycode and modifiers (Ctrl)">Hotkey</a> or an empty value. Use hotkeys.findHotkey() method. <br /></td></tr>
<tr class="separator:ad5d98e4a492606bd59c36cc2b319d0fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c63bae3ec3f2d909ea4f4ae1fa61d33"><td class="memItemLeft" align="right" valign="top"><a id="a4c63bae3ec3f2d909ea4f4ae1fa61d33"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a4c63bae3ec3f2d909ea4f4ae1fa61d33">getIcon</a> () const override</td></tr>
<tr class="memdesc:a4c63bae3ec3f2d909ea4f4ae1fa61d33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a UTF-8 icon from an icon font. <br /></td></tr>
<tr class="separator:a4c63bae3ec3f2d909ea4f4ae1fa61d33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75abd7d20eaf815b3f17973e78300953"><td class="memItemLeft" align="right" valign="top"><a id="a75abd7d20eaf815b3f17973e78300953"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a75abd7d20eaf815b3f17973e78300953">drawToSidePane</a> (<a class="el" href="classpepr3d_1_1_side_pane.html">SidePane</a> &amp;sidePane) override</td></tr>
<tr class="memdesc:a75abd7d20eaf815b3f17973e78300953"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> from inside this method. <br /></td></tr>
<tr class="separator:a75abd7d20eaf815b3f17973e78300953"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a2a26bd5c33bc504014f9fcf9dbcae6"><td class="memItemLeft" align="right" valign="top"><a id="a2a2a26bd5c33bc504014f9fcf9dbcae6"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a2a2a26bd5c33bc504014f9fcf9dbcae6">drawToModelView</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:a2a2a26bd5c33bc504014f9fcf9dbcae6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a> from inside this method. <br /></td></tr>
<tr class="separator:a2a2a26bd5c33bc504014f9fcf9dbcae6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada0494fd30bbdbf789cb4fa5ac980a9d"><td class="memItemLeft" align="right" valign="top"><a id="ada0494fd30bbdbf789cb4fa5ac980a9d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#ada0494fd30bbdbf789cb4fa5ac980a9d">onModelViewMouseDown</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:ada0494fd30bbdbf789cb4fa5ac980a9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users presses a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:ada0494fd30bbdbf789cb4fa5ac980a9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a896ecc3264191911cb5f960fe983453e"><td class="memItemLeft" align="right" valign="top"><a id="a896ecc3264191911cb5f960fe983453e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a896ecc3264191911cb5f960fe983453e">onModelViewMouseUp</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a896ecc3264191911cb5f960fe983453e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users releases a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a896ecc3264191911cb5f960fe983453e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada44c24799296b71b5f2d46651921343"><td class="memItemLeft" align="right" valign="top"><a id="ada44c24799296b71b5f2d46651921343"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#ada44c24799296b71b5f2d46651921343">onModelViewMouseDrag</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:ada44c24799296b71b5f2d46651921343"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users drags a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:ada44c24799296b71b5f2d46651921343"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d19c5d44381645259c63d51452ce464"><td class="memItemLeft" align="right" valign="top"><a id="a3d19c5d44381645259c63d51452ce464"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a3d19c5d44381645259c63d51452ce464">onModelViewMouseMove</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a3d19c5d44381645259c63d51452ce464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users moves mouse cursor over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. Note: This method is not called when the user is dragging the mouse! <br /></td></tr>
<tr class="separator:a3d19c5d44381645259c63d51452ce464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a988c5e1fa7d556d013ebffae277b6bd7"><td class="memItemLeft" align="right" valign="top"><a id="a988c5e1fa7d556d013ebffae277b6bd7"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_triangle_painter.html#a988c5e1fa7d556d013ebffae277b6bd7">onNewGeometryLoaded</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:a988c5e1fa7d556d013ebffae277b6bd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on EVERY <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after a new <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a> is loaded or imported. <br /></td></tr>
<tr class="separator:a988c5e1fa7d556d013ebffae277b6bd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpepr3d_1_1_tool"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpepr3d_1_1_tool')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classpepr3d_1_1_tool.html">pepr3d::Tool</a></td></tr>
<tr class="memitem:aae323508b6d824047abc981e10a42c0f inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aae323508b6d824047abc981e10a42c0f"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aae323508b6d824047abc981e10a42c0f">isEnabled</a> () const</td></tr>
<tr class="memdesc:aae323508b6d824047abc981e10a42c0f inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if enabled and can be selected, otherwise false. This should be a fast method, it is called every frame! <br /></td></tr>
<tr class="separator:aae323508b6d824047abc981e10a42c0f inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aa1aae7ecebb6d2e63dfa61d08ff022ae"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">onModelViewMouseWheel</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users scrolls mouse wheel over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a139c1e72bd9eada36ce660e1fbf10c6b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">onToolSelect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView)</td></tr>
<tr class="memdesc:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects it. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafba698d859abbc2b1dc48a38ca24d36 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aafba698d859abbc2b1dc48a38ca24d36"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aafba698d859abbc2b1dc48a38ca24d36">onToolDeselect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView)</td></tr>
<tr class="memdesc:aafba698d859abbc2b1dc48a38ca24d36 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects another tool. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:aafba698d859abbc2b1dc48a38ca24d36 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2420df1e8a95c66a882a923158084020"></a>
virtual std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">safeIntersectMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (an index of a triangle) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2645ac765f26cbda2ab9c818a362912f"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">safeIntersectDetailedMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (<a class="el" href="structpepr3d_1_1_detailed_triangle_id.html" title="Triangle ID in all detailed triangles Face index in mMeshDetailed faces;.">DetailedTriangleId</a>) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aff4584fe20f552ae3b7814ecab423768"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>safeComputeSdf</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication) final</td></tr>
<tr class="separator:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a60d6d50cc1046ef380ddf04abd1e6f3e"><td class="memItemLeft" align="right" valign="top"><a id="a60d6d50cc1046ef380ddf04abd1e6f3e"></a>
<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mApplication</b></td></tr>
<tr class="separator:a60d6d50cc1046ef380ddf04abd1e6f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f3689cb00111eff5f25876e5b5c8096"><td class="memItemLeft" align="right" valign="top"><a id="a8f3689cb00111eff5f25876e5b5c8096"></a>
glm::vec2&#160;</td><td class="memItemRight" valign="bottom"><b>mLastClick</b></td></tr>
<tr class="separator:a8f3689cb00111eff5f25876e5b5c8096"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61bcf0a89c73279b23e605c8494fe7ec"><td class="memItemLeft" align="right" valign="top"><a id="a61bcf0a89c73279b23e605c8494fe7ec"></a>
ci::Ray&#160;</td><td class="memItemRight" valign="bottom"><b>mLastRay</b></td></tr>
<tr class="separator:a61bcf0a89c73279b23e605c8494fe7ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e4e0d40def32ec1cd612ad089fe2d8"><td class="memItemLeft" align="right" valign="top"><a id="a75e4e0d40def32ec1cd612ad089fe2d8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mGroupCommands</b> = false</td></tr>
<tr class="separator:a75e4e0d40def32ec1cd612ad089fe2d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2f1a64760c713b39c4dcf1fea51c65e"><td class="memItemLeft" align="right" valign="top"><a id="ac2f1a64760c713b39c4dcf1fea51c65e"></a>
std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mHoveredTriangleId</b> = {}</td></tr>
<tr class="separator:ac2f1a64760c713b39c4dcf1fea51c65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for coloring individual triangles by clicking or dragging the mouse. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/<a class="el" href="_triangle_painter_8h_source.html">TrianglePainter.h</a></li>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/TrianglePainter.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_triangle_painter.html">TrianglePainter</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
